package my;

import spring.transactional.EnableNextTransaction;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableNextTransaction

public class Application {
    public static void main(String[] args) throws Exception {

        ConfigurableApplicationContext spring = SpringApplication.run(Application.class, args);

        MyService bean = spring.getBean(MyService.class);
        bean.hello("1");

    }
}
